<template>
  <div class="title-box">
    <img src="@/assets/imgs/modeTitleBg.png" alt="" class="bg" />
    <div class="title">{{ props.title }}</div>
  </div>
</template>

<script setup>
const props = defineProps({
  title: {
    type: String,
    default: "yy",
  },
});
</script>

<style scoped lang="scss">
.title-box {
  position: relative;
  width: 403px;
  height: 48px;
  .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .title {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 0 0 23px;
    box-sizing: border-box;
    font-family: Alimama ShuHeiTi, Alimama ShuHeiTi;
    font-weight: bold;
    font-size: 20px;
    color: #45e3ff;
  }
}
</style>
